<template>
	<view>
		<view class="un-applySuccess">
			<view >
				<text class="yticon icon-xuanzhong2 un-icon"></text>
			</view>
			<view >
				<text class="un-text">售后申请提交成功</text>
			</view>
			<view style="display: flex;">
				<view style="margin-left: 120upx;">
					<text class="un-text1" @click="navToRecordDetail(recordId)">查看记录</text>
				</view>
				<navigator url="/pages/index/index" open-type="switchTab" class="p-b-btn">
					<text class="un-text1">回到首页</text>
				</navigator>
				
			</view>
		</view>
		<view class="un-text2"><text class="iconfont icon-tanhao"></text>温馨提示 ：</view>
		<view class="un-text2">• 商品寄回地址将在审核通过后以短信形式告知，或在申请记录中查询。</view>
		<view class="un-text2">• 提交服务单后，售后专员可能与您电话沟通，请保持手机畅通。</view>
		<view class="un-text2">• 退货处理成功后退款金额将原路返回到您的支持账户中。</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				recordId:'',
			}
		},
		onNavigationBarButtonTap() {
			uni.redirectTo({
				url:'/pages/aftersale/aftersale'
			})
		},
		onLoad(options) {
			this.recordId = options.recordId;
			uni.startPullDownRefresh();
		},
		onPullDownRefresh() {
			console.log('refresh');
			setTimeout(function () {
				uni.stopPullDownRefresh();
			}, 1000);
		},
		methods: {
			//跳转记录详情
			navToRecordDetail(recordId){
				uni.redirectTo({
					url:`/pages/aftersale/recordDetail/recordDetail?recordId=`+recordId
				})
			},
			
		}
	}
</script>

<style lang="scss">
	page{
		background-color: #F5F5F5;
	}
	.un-applySuccess{
		background-color: #FFFFFF;
		margin-bottom: 50upx;
		text-align: center;
		padding: 90upx 0upx 0upx;
		border-bottom: 1upx solid #F2F2F2;
		border-top: 1upx solid #F2F2F2;
		.un-icon{
			color: #E02E24;
			font-size: 130upx;
		}
		.un-text{
			font-size: 35upx;
			color: #666666;
			line-height: 70upx;
		}
		.un-text1{
			padding: 15upx 60upx;
			margin: 0upx 20upx;
			border: #999999 solid 1upx;
			border-radius: 8upx;
			color: #999999;
			font-size: 25upx;
			line-height: 180upx;
		}
	}
	
	.un-text2{
		font-size: 24upx;
		color: #999999;
		padding: 0upx 60upx;
		line-height: 50upx;
	}
	
</style>
